package com.yunfangdata.query;

import com.alibaba.druid.util.StringUtils;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class ClassroomQueryObject extends  QueryObject {

    private String sort;   //排序的列
    private String order;  //排序的方式


    //select * from employee order by ?, ?
    public String getSort(){
        return StringUtils.isEmpty(sort) ? null : sort;
    }
    public String getOrder(){
        return StringUtils.isEmpty(order) ? "" : order;
    }


    private String keyword; //关键查询

    public String getKeyword(){
        return StringUtils.isEmpty(keyword) ? null : keyword;
    }

}
